/*
 * @Description: 

 * @Author: 于海龙
 * @Date: 2024-10-08 16:54:55
 * @LastEditors: 于海龙
 * @LastEditTime: 2024-10-08 16:55:24
 */
import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<Integer> integerList = new ArrayList<>();
        integerList.add(5);
        integerList.add(8);
        integerList.add(3);

        Integer maxInteger = GenericMaxFinder.findMax(integerList);
        System.out.println("Max integer: " + maxInteger);

        List<String> stringList = new ArrayList<>();
        stringList.add("apple");
        stringList.add("banana");
        stringList.add("cherry");

        String maxString = GenericMaxFinder.findMax(stringList);
        System.out.println("Max string: " + maxString);
    }
}